package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 促销申请表
 */
@Data
@TableName("t_discountApply")
public class DiscountApplyBean {
    /**
     * id
     */
    @TableId(value = "pk_id",type = IdType.AUTO)
    private Integer id;
    /**促销申请编号*/
    @TableField("discountApplyId")
    private String discountApplyId;
    /**促销方案名*/
    @TableField("name")
    private String name;
    /**方案描述*/
    @TableField("describt")
    private String describt;
    /**商品编号*/
    @TableField("shopId")
    private String shopId;
    /**日期*/
    @TableField("applyDate")
    private LocalDate applyDate=LocalDate.now();

    /**审核状态*/
    @TableField("status")
    private String status="未审核";//未审核，通过，未通过
    /**未通过原因*/
    @TableField("reason")
    private String reason="等待审核中";

    public DiscountApplyBean() {
    }

    public DiscountApplyBean( String name, String describt, String shopId) {
        this.name = name;
        this.describt = describt;
        this.shopId = shopId;

    }
}
